package rbtree.non_recursion_3;

/**
 * @author xing
 * @date 2023/1/12 11:49:27
 */
public class Main {
    public static void main(String[] args) {
        RBTree<Integer, Integer> rbTree = new RBTree<>();
        rbTree.insert(10, null);
        rbTree.insert(20, null);
        rbTree.insert(30, null);
        rbTree.insert(40, null);
        rbTree.insert(50, null);
        rbTree.insert(60, null);
        rbTree.delete(60, null);
        rbTree.delete(50, null);
        rbTree.delete(40, null);
        rbTree.delete(30, null);
        rbTree.delete(10, null);
        rbTree.delete(20, null);
        TreeUtils.show(rbTree.getRoot());
    }
}
